package com.chenyun.common.vo;

public enum ResultCode {
    SUCCESS(true,200,"操作成功"),
    //---系统错误返回码-----
    FAIL(false,10001,"操作失败"),
    UNAUTHENTICATED(false,4001,"您还未登录"),
    TOKEN_NOT_EXP(false,4002,"身份票据无效,请重新登录!"),
    UNAUTHORISE(false,10003,"权限不足"),
    SERVER_ERROR(false,99999,"抱歉，系统繁忙，请稍后重试！"),

    //---用户操作返回码  2xxxx----
    USER_NOT_EXIST(false,20001,"用户不存在！");

    //---企业操作返回码  3xxxx----
    //---权限操作返回码----
    //---其他操作返回码----
    boolean success;
    int  code;
    String message;

    ResultCode(boolean success,int  code,String message){
        this.success=success;
        this.code=code;
        this.message=message;
    }
    public boolean success() {
        return success;
    }

    public int code() {
        return code;
    }

    public String message() {
        return message;
    }
}
